﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MShop.Core.Domain;
using System.Web.Security;
using System.Data.Objects.DataClasses;
using MShop.Web.Areas.Admin.Controllers;
using MShop.Core.Service;
using MShop.Core.DataAccess;
using MShop.Core;
using MShop.Web.Components.Filters;
using MShop.Core.Util;
using MShop.Core.Service.Membership;

namespace MShop.Web.Areas.Admin.Controllers
{
    [PowerAuthonize]
    [RightFilter]
    public class SecureController : MShop.Web.Controllers.ControllerBase
    {

        public IEnumerable<Menu> Menus
        {
            get;
            set;
        }

        public SecureController()
        {
            this.Menus = IoC.Resolve<IMenuDao>().Find(x => x.ParentId == null);           
        }

        public IUserRightsService UserRightsService { get; set; }

        
    }
}
